package com.oren.controller;

import com.oren.Bean.Param;
import com.oren.Bean.View;
import com.oren.annotation.WswController;
import com.oren.annotation.WswInject;
import com.oren.pojo.Customer;
import com.oren.service.CustomerService;
import com.oren.service.impl.CustomerServiceImpl;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/6/29
 * Time: 11:12
 * describe:
 */
@WswController("TestController")
public class TestController  {

    @WswInject
    CustomerServiceImpl customerService;

    public View insert(){
        System.out.println("进入方法insert");
        Customer customer=new Customer();
        customer.setId(10086);
        customer.setName("张三123");
        customer.setEmail("123@qq.com");
        customer.setTime(new Date());
        customerService.insert(customer);
     return new View("Test.jsp");
    }

    public View update(){
        System.out.println("进入方法update");
        return new View("Test.jsp");
    }

    public View delete(){
        System.out.println("进入方法delete");
        return new View("Test.jsp");
    }


}
